package a.a001;

import org.apache.commons.beanutils.PropertyUtils;

public class Test1 {
	public static void main(String[] args) throws Exception {
		Object student = new Student("张三", 123, "上海");
		
		Object obj = PropertyUtils.getProperty(student, "name");
		System.out.println(obj);
		
		PropertyUtils.setProperty(student, "address", "北京");
		Object obj2 = PropertyUtils.getProperty(student, "address");
		System.out.println(obj2);
	}
}
